﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DIM_CONFIG
{
    public partial class Msgform : Form
    {
        public Msgform(Color color,Tuple<string,string> tuple)
        {
            InitializeComponent();
            this.BackColor = color;
            title.Text = tuple.Item1;
            Body.Text = tuple.Item2;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult= DialogResult.Cancel;
            this.Close();
        }
    }
}
